package com.inray.nbs.utils;


public class Page {
	private int pageSize;//每页显示多少条
	private int currentPage;// 当前页数
	private int totalCount;// 总记录数
	private int beginIndex;// 每页数据的起始位
	private int endIndex;// 每页数据的结束位
	private int totalPage;// 总页
	private boolean hasNextPage;// 是否有下
	private boolean hasPrvPage;// 是否有上

	
	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getBeginIndex() {
		return beginIndex;
	}

	public void setBeginIndex(int beginIndex) {
		this.beginIndex = beginIndex;
	}

	public int getEndIndex() {
		return endIndex;
	}

	public void setEndIndex(int endIndex) {
		this.endIndex = endIndex;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public boolean isHasNextPage() {
		return hasNextPage;
	}

	public void setHasNextPage(boolean hasNextPage) {
		this.hasNextPage = hasNextPage;
	}

	public boolean isHasPrvPage() {
		return hasPrvPage;
	}

	public void setHasPrvPage(boolean hasPrvPage) {
		this.hasPrvPage = hasPrvPage;
	}

	public Page(int pageSize, int currentPage, int totalCount, int beginIndex,
			int endIndex, int totalPage, boolean hasNextPage, boolean hasPrvPage) {
		super();
		this.pageSize = pageSize;
		this.currentPage = currentPage;
		this.totalCount = totalCount;
		this.beginIndex = beginIndex;
		this.endIndex = endIndex;
		this.totalPage = totalPage;
		this.hasNextPage = hasNextPage;
		this.hasPrvPage = hasPrvPage;
	}

	public Page() {
		super();
	}
}
